<?php

/*无需登录路由*/
Route::post('shop-send_phone_code', ['as' => 'shop_send_phone_code', 'uses' => 'IndexController@send_phone_code']);//发送验证码














/****************************************************** 检测配置（检） ******************************************************/

Route::get('shop-checkpoint-index', ['as' => 'shop_checkpoint_index', 'uses' => 'CheckpointController@index']);  //检测机构列表页
Route::delete('shop-checkpoint-del', ['as' => 'shop_checkpoint_del', 'uses' => 'CheckpointController@del']); //删除

/*检测机构开放日期*/
Route::get('shop-checkpoint-dayLists', ['as' => 'shop_checkpoint_dayLists', 'uses' => 'CheckpointController@dayLists']);
Route::get('shop-checkpoint-getDayLists', ['as' => 'shop_checkpoint_getDayLists', 'uses' => 'CheckpointController@getDayLists']);
Route::get('shop-checkpoint-create', ['as' => 'shop_checkpoint_create', 'uses' => 'CheckpointController@create']);
Route::post('shop-checkpoint-store', ['as' => 'shop_checkpoint_store', 'uses' => 'CheckpointController@store']);
Route::post('shop-checkpoint-checkDay', ['as' => 'shop_checkpoint_checkDay', 'uses' => 'CheckpointController@checkDay']);//检查日期是否已经存在
Route::post('shop-checkpoint-update', ['as' => 'shop_checkpoint_update', 'uses' => 'CheckpointController@update']);
Route::put('shop-checkpoint-delDate/{id}', ['as' => 'shop_checkpoint_delDate', 'uses' => 'CheckpointController@delDate']);//删除开放日期

/*检测规格参数*/
Route::get('shop_check_specs_index', ['as' => 'shop_check_specs_index','route_name' => '检测机构规格列表', 'uses' => 'ShopCheckpointServiceSpecsController@index']);//检测机构规格列表
Route::get('shop_check_specs_create', ['as' => 'shop_check_specs_create','route_name' => '检测机构规格-添加页面', 'uses' => 'ShopCheckpointServiceSpecsController@create']);//检测机构规格-添加页面
Route::post('shop_check_specs_store', ['as' => 'shop_check_specs_store','route_name' => '检测机构规格-添加操作', 'uses' => 'ShopCheckpointServiceSpecsController@store']);//检测机构规格-添加操作
Route::get('shop_check_specs_edit', ['as' => 'shop_check_specs_edit','route_name' => '检测机构规格-修改页面', 'uses' => 'ShopCheckpointServiceSpecsController@edit']);//检测机构规格-修改页面
Route::put('shop_check_specs_update', ['as' => 'shop_check_specs_update','route_name' => '检测机构规格-修改操作', 'uses' => 'ShopCheckpointServiceSpecsController@update']);//检测机构规格-修改操作
Route::put('shop_check_specs_change_state', ['as' => 'shop_check_specs_change_state','route_name' => '检测机构规-修改状态', 'uses' => 'ShopCheckpointServiceSpecsController@change_state']);//检测机构规-修改状态
Route::delete('shop_check_specs_delete', ['as' => 'shop_check_specs_delete','route_name' => '检测机构规格-删除', 'uses' => 'ShopCheckpointServiceSpecsController@delete']);//检测机构规格-删除
Route::get('shop_check_specs_params_create', ['as' => 'shop_check_specs_params_create','route_name' => '检测机构规格参数-添加页面', 'uses' => 'ShopCheckpointServiceSpecsController@params_create']);//检测 机构规格参数-添加页面
Route::post('shop_check_specs_params_store', ['as' => 'shop_check_specs_params_store','route_name' => '检测机构规格参数-添加操作', 'uses' => 'ShopCheckpointServiceSpecsController@params_store']);//检

/*价目表*/
Route::get('shop_check_product_index', ['as' => 'shop_check_product_index','route_name' => '检测机构价目表', 'uses' => 'ShopCheckpointServiceSpecsController@product_list']);//检测机构价目表


/****************************************************** 账号管理（检 + 修） ******************************************************/
/*资金账户信息*/
Route::get('shop-account_info_page', ['as' => 'shop_account_info_page', 'uses' => 'ShopAccountController@account_info_page']);//商户资金账户信息
Route::post('shop-account_info_update', ['as' => 'shop_account_info_update', 'uses' => 'ShopAccountController@account_info_update']);//修改商户资金账户信息

/*安全设置*/
Route::get('shop-safety_page', ['as' => 'shop_safety_page', 'uses' => 'ShopUserController@safety_page']);//安全设置页面
Route::post('shop-safety_update_password', ['as' => 'shop_safety_update_password', 'uses' => 'ShopUserController@safety_update_password']);//修改登录密码
Route::post('shop-safety_pay_password_set', ['as' => 'shop_safety_pay_password_set', 'uses' => 'ShopUserController@safety_pay_password_set']);//设置、修改支付密码
//Route::post('shop-safety_update_pay_password', ['as' => 'shop_safety_update_pay_password', 'uses' => 'ShopUserController@safety_update_pay_password']);//修改支付密码
Route::post('shop-safety_update_phone', ['as' => 'shop_safety_update_phone', 'uses' => 'ShopUserController@safety_update_phone']);//修改手机号

/*用户资料*/
Route::get('shop-userinfo_page', ['as' => 'shop_userinfo_page', 'uses' => 'ShopUserController@userinfo_page']);//用户资料页面
Route::post('shop-userinfo_update', ['as' => 'shop_userinfo_update', 'uses' => 'ShopUserController@userinfo_update']);//修改用户资料

/*角色管理*/
Route::get('shop-role_list', ['as' => 'shop_role_list', 'uses' => 'ShopUserController@role_list']);//角色列表
Route::get('shop-role_create', ['as' => 'shop_role_create', 'uses' => 'ShopUserController@role_create']);//添加角色页面
Route::post('shop-role_store', ['as' => 'shop_role_store', 'uses' => 'ShopUserController@role_store']);//添加角色操作
Route::get('shop-role_edit', ['as' => 'shop_role_edit', 'uses' => 'ShopUserController@role_edit']);//修改角色页面
Route::post('shop-role_update', ['as' => 'shop_role_update', 'uses' => 'ShopUserController@role_update']);//修改角色操作
Route::delete('shop-role_del', ['as' => 'shop_role_del', 'uses' => 'ShopUserController@role_del']);//删除角色

/*账号管理*/
Route::get('shop-user_list', ['as' => 'shop_user_list', 'uses' => 'ShopUserController@user_list']);//账号列表
Route::get('shop-user_create', ['as' => 'shop_user_create', 'uses' => 'ShopUserController@user_create']);//添加账号-页面
Route::post('shop-user_store', ['as' => 'shop_user_store', 'uses' => 'ShopUserController@user_store']);//添加账号-操作
Route::get('shop-user_edit', ['as' => 'shop_user_edit', 'uses' => 'ShopUserController@user_edit']);//修改账号
Route::post('shop-user_update', ['as' => 'shop_user_update', 'uses' => 'ShopUserController@user_update']);//修改账号
Route::put('shop-user_change_state', ['as' => 'shop_user_change_state', 'uses' => 'ShopUserController@user_change_state']);//账号启用禁用
Route::delete('shop-user_del', ['as' => 'shop_user_del', 'uses' => 'ShopUserController@user_del']);//删除账号



/****************************************************** 交易管理 ******************************************************/

/*年检预约单-检*/
Route::get('shop_order_checkpoint_index', ['as' => 'shop_order_checkpoint_index', 'uses' => 'OrderCheckpointController@index']);//订单列表
Route::get('shop_order_checkpoint_detail', ['as' => 'shop_order_checkpoint_detail', 'uses' => 'OrderCheckpointController@detail']);//订单详情

//单辆车操作
Route::put('shop_order_checkpoint_check_ok', ['as' => 'shop_order_checkpoint_check_ok', 'uses' => 'OrderCheckpointController@check_ok']);//检测成功-合格
Route::put('shop_order_checkpoint_check_not_ok', ['as' => 'shop_order_checkpoint_check_not_ok', 'uses' => 'OrderCheckpointController@check_not_ok']);//检测成功-不合格
Route::get('shop_order_checkpoint_fail_single_page', ['as' => 'shop_order_checkpoint_fail_single_page', 'uses' => 'OrderCheckpointController@fail_single_page']);//故障-页面
Route::post('shop_order_checkpoint_fail_single', ['as' => 'shop_order_checkpoint_fail_single', 'uses' => 'OrderCheckpointController@fail_single']);//故障-操作

//Route::get('shop_order_checkpoint_index_waiting', ['as' => 'shop_order_checkpoint_index_waiting','route_name' => '待处理', 'uses' => 'OrderCheckpointController@index_waiting']);//年检预约订单 列表 - 待处理
//Route::get('shop_order_checkpoint_index_complete', ['as' => 'shop_order_checkpoint_index_complete','route_name' => '已完成', 'uses' => 'OrderCheckpointController@index_complete']);//年检预约订单 列表 - 已完成
//全部车
//Route::put('shop_order_checkpoint_complete_all', ['as' => 'shop_order_checkpoint_complete_all','route_name' => '检测完成（全部车）', 'uses' => 'OrderCheckpointController@complete_all']);//年检预约订单 - 检测完成（全部车）
//Route::get('shop_order_checkpoint_fail_all_page', ['as' => 'shop_order_checkpoint_fail_all_page','route_name' => '检测失败(全部车-退款)-页面', 'uses' => 'OrderCheckpointController@fail_all_page']);//年检预约订单 - 检测失败(全部车-退款)-页面
//Route::post('shop_order_checkpoint_fail_all', ['as' => 'shop_order_checkpoint_fail_all','route_name' => '检测失败(全部车-退款)-操作', 'uses' => 'OrderCheckpointController@fail_all']);//年检预约订单 - 检测失败(全部车-退款)-操作
//单辆车
//Route::put('shop_order_checkpoint_complete_single', ['as' => 'shop_order_checkpoint_complete_single','route_name' => '检测完成（单辆车）', 'uses' => 'OrderCheckpointController@complete_single']);//年检预约订单 - 检测完成（单辆车）

//退款申请列表
Route::get('shop_order_checkpoint_apply_refund_waiting_list', ['as' => 'shop_order_checkpoint_apply_refund_waiting_list','route_name' => '退款申请列表', 'uses' => 'OrderCheckpointController@apply_refund_waiting_list']);//年检预约订单 - 退款申请列表
Route::put('shop_order_checkpoint_apply_refund_agree', ['as' => 'shop_order_checkpoint_apply_refund_agree','route_name' => '同意退款申请', 'uses' => 'OrderCheckpointController@apply_refund_agree']);//退款申请列表 - 同意退款申请-等待退款操作
Route::get('shop_order_checkpoint_apply_refund_refuse_page', ['as' => 'shop_order_checkpoint_apply_refund_refuse_page','route_name' => '拒绝退款申请页面', 'uses' => 'OrderCheckpointController@apply_refund_refuse_page']);//退款申请列表 - 拒绝退款申请页面
Route::post('shop_order_checkpoint_apply_refund_refuse', ['as' => 'shop_order_checkpoint_apply_refund_refuse','route_name' => '拒绝退款申请', 'uses' => 'OrderCheckpointController@apply_refund_refuse']);//退款申请列表 - 拒绝退款申请

//待退款退款列表
//Route::get('shop_order_checkpoint_refund_waiting_list', ['as' => 'shop_order_checkpoint_refund_waiting_list','route_name' => '待退款列表', 'uses' => 'OrderCheckpointController@refund_waiting_list']);//年检预约订单 - 待退款列表
//Route::get('shop_order_checkpoint_deal_refund_page', ['as' => 'shop_order_checkpoint_deal_refund_page','route_name' => '退款处理-页面', 'uses' => 'OrderCheckpointController@deal_refund_page']);//年检预约订单 - 退款处理-页面
Route::put('shop_order_checkpoint_deal_refund', ['as' => 'shop_order_checkpoint_deal_refund','route_name' => '退款处理', 'uses' => 'OrderCheckpointController@deal_refund']);//年检预约订单 - 退款处理


/****************************************************** 运营管理 ******************************************************/
/*资金管理*/
Route::get('shop_finance_finance_index', ['as' => 'shop_finance_finance_index','route_name' => '财务统计', 'uses' => 'FinanceController@finance_index']);//财务统计



/****************************************************** 资金结算 ******************************************************/
/*订单结算*/
Route::get('shop_account_settle_index', ['as' => 'shop_account_settle_index', 'uses' => 'AccountSettleController@order_index']);//订单结算列表
Route::get('shop_account_settle_add_page', ['as' => 'shop_account_settle_add_page', 'uses' => 'AccountSettleController@order_add_page']);//订单结算-添加页面
Route::post('shop_account_settle_add', ['as' => 'shop_account_settle_add', 'uses' => 'AccountSettleController@order_add']);//订单结算-添加操作
Route::get('shop_account_settle_edit_page', ['as' => 'shop_account_settle_edit_page', 'uses' => 'AccountSettleController@order_edit_page']);//订单结算-编辑页面
Route::post('shop_account_settle_edit', ['as' => 'shop_account_settle_edit', 'uses' => 'AccountSettleController@order_edit']);//订单结算-编辑操作
Route::delete('shop_account_settle_submit_settle', ['as' => 'shop_account_settle_submit_settle', 'uses' => 'AccountSettleController@order_submit_settle']);//订单结算-提交


/*优惠券津贴结算*/
Route::get('shop_account_settle_coupon_index', ['as' => 'shop_account_settle_coupon_index', 'uses' => 'AccountSettleController@coupon_index']);//优惠券津贴结算列表
Route::get('shop_account_settle_coupon_add_page', ['as' => 'shop_account_settle_coupon_add_page', 'uses' => 'AccountSettleController@coupon_add_page']);//优惠券津贴结算-添加页面
Route::post('shop_account_settle_coupon_add', ['as' => 'shop_account_settle_coupon_add', 'uses' => 'AccountSettleController@coupon_add']);//优惠券津贴结算-添加操作
Route::get('shop_account_settle_coupon_edit_page', ['as' => 'shop_account_settle_coupon_edit_page', 'uses' => 'AccountSettleController@coupon_edit_page']);//优惠券津贴结算-编辑页面
Route::post('shop_account_settle_coupon_edit', ['as' => 'shop_account_settle_coupon_edit', 'uses' => 'AccountSettleController@coupon_edit']);//优惠券津贴结算-编辑操作
Route::delete('shop_account_settle_coupon_submit_settle', ['as' => 'shop_account_settle_coupon_submit_settle', 'uses' => 'AccountSettleController@coupon_submit_settle']);//优惠券津贴结算-提交
















